// import { methods } from "../uni_modules/uview-ui/libs/mixin/mixin.js";
import http from "./http.js";

//上传图片
export const uploadImg = http.BASE_URL + "/api/common/upload";

//小程序登录
export function login(data){
	return http.request(
	    {
	        url: "/member/login/AppletLogin",
			method:"post",
	    },
	    data,
	    true
	);
}
//身份证验证
export function authentication(data){
	return http.request(
	    {
	        url: "/member/member/id_card_verify",
			method:"post",
	    },
	    data,
	    false
	);
}
//当前用户信息
export function usermessage(data){
	return http.request(
	    {
	        url: "/member/personal/material",
			method:"post",
	    },
	    data,
	    false
	);
}
//选择信息
export function selectteacherOrstudent(data){
	return http.request(
	    {
	        url: "/member/member/teacher_or_student",
			method:"post",
	    },
	    data,
	    false
	);
}
//专业列表
export function science(data){
	return http.request(
	    {
	        url: "/teacher/Index/science",
			method:"post",
	    },
	    data,
	    false
	);
}
//填写和编辑学生信息
export function personaledit(data){
	return http.request(
	    {
	        url: "/student/Index/personal_edit",
			method:"post",
	    },
	    data,
	    true
	);
}
//学生当前个人信息
export function getpersonal(data){
	return http.request(
	    {
	        url: "/student/Index/student_current",
			method:"post",
	    },
	    data,
	    false
	);
}

//导师列表
export function getTeacherList(data){
	return http.request(
	    {
	        url: "/student/Index/teacher_list",
			method:"get",
	    },
	    data,
	    false
	);
}

//导师详情
export function getteacherDetail(data){
	return http.request(
	    {
	        url: "/student/Index/teacher_details",
			method:"get",
	    },
	    data,
	    false
	);
}
//选择导师
export function selectteacher(data){
	return http.request(
	    {
	        url: "/student/Index/student_select_teacher",
			method:"post",
	    },
	    data,
	    false
	);
}
//已选择导师
export function selectedteacher(data){
	return http.request(
	    {
	        url: "/student/Index/my_teacher",
			method:"post",
	    },
	    data,
	    false
	);
}
//我的导师
export function myteacherList(data){
	return http.request(
	    {
	        url: "/student/Index/my_teacher_list",
			method:"get",
	    },
	    data,
	    false
	);
}

//config配置信息
export function config(data){
	return http.request(
	    {
	        url: "/system/Basic/config",
			method:"get",
	    },
	    data,
	    false
	);
}

//意见反馈
export function feedback(data){
	return http.request(
	    {
	        url: "/member/personal/feedback",
			method:"post",
	    },
	    data,
	    true
	);
}

//导师端
//个人信息填写或修改
export function teachereditoradd(data){
	return http.request(
	    {
	        url: "/teacher/Index/personal_edit",
			method:"post",
	    },
	    data,
	    true
	);
}
//学生列表
export function getStudentList(data){
	return http.request(
	    {
	        url: "/teacher/Index/index",
			method:"get",
	    },
	    data,
	    false
	);
}
//学生详情
export function getStudentDetail(data){
	return http.request(
	    {
	        url: "/teacher/Index/student_details",
			method:"get",
	    },
	    data,
	    false
	);
}
//当前个人信息
export function getMineData (data){
	return http.request(
	    {
	        url: "/student/Index/student_current",
			method:"post",
	    },
	    data,
	    false
	);
}

//我的学生
export function myStudent (data){
	return http.request(
	    {
	        url: "/teacher/Index/my_student",
			method:"post",
	    },
	    data,
	    false
	);
}

//通过学生
export function passStudent (data){
	return http.request(
	    {
	        url: "/teacher/Index/confirm_student",
			method:"post",
	    },
	    data,
	    true
	);
}

//拒绝学生
export function rejectStudent (data){
	return http.request(
	    {
	        url: "/teacher/Index/refuse_student",
			method:"post",
	    },
	    data,
	    false
	);
}

//已选学生

export function selectedstudent (data){
	return http.request(
	    {
	        url: "/teacher/Index/select_student",
			method:"post",
	    },
	    data,
	    false
	);
}

//老师当前信息
export function teacherCurrent (data){
	return http.request(
	    {
	        url: "/teacher/Index/teacher_current",
			method:"post",
	    },
	    data,
	    false
	);
}

//导师类别
export function teacherCategory (data){
	return http.request(
	    {
	        url: "/teacher/Index/teacher_category",
			method:"post",
	    },
	    data,
	    false
	);
}